Optimal. Leaf size=126 \[ \frac {5}{16} a^2 c^2 x \sqrt {a+a x} \sqrt {c-c x}+\frac {5}{24} a c x (a+a x)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {5}{8} a^{5/2} c^{5/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+a x}}{\sqrt {a} \sqrt {c-c x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {38, 65, 223,
209} \begin {gather*} \frac {5}{8} a^{5/2} c^{5/2} \text {ArcTan}\left (\frac {\sqrt {c} \sqrt {a x+a}}{\sqrt {a} \sqrt {c-c x}}\right )+\frac {5}{16} a^2 c^2 x \sqrt {a x+a} \sqrt {c-c x}+\frac {5}{24} a c x (a x+a)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a x+a)^{5/2} (c-c x)^{5/2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 38
Rule 65
Rule 209
Rule 223
Rubi steps
\begin {align*} \int (a+a x)^{5/2} (c-c x)^{5/2} \, dx &=\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {1}{6} (5 a c) \int (a+a x)^{3/2} (c-c x)^{3/2} \, dx\\ &=\frac {5}{24} a c x (a+a x)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {1}{8} \left (5 a^2 c^2\right ) \int \sqrt {a+a x} \sqrt {c-c x} \, dx\\ &=\frac {5}{16} a^2 c^2 x \sqrt {a+a x} \sqrt {c-c x}+\frac {5}{24} a c x (a+a x)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {1}{16} \left (5 a^3 c^3\right ) \int \frac {1}{\sqrt {a+a x} \sqrt {c-c x}} \, dx\\ &=\frac {5}{16} a^2 c^2 x \sqrt {a+a x} \sqrt {c-c x}+\frac {5}{24} a c x (a+a x)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {1}{8} \left (5 a^2 c^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2 c-\frac {c x^2}{a}}} \, dx,x,\sqrt {a+a x}\right )\\ &=\frac {5}{16} a^2 c^2 x \sqrt {a+a x} \sqrt {c-c x}+\frac {5}{24} a c x (a+a x)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {1}{8} \left (5 a^2 c^3\right ) \text {Subst}\left (\int \frac {1}{1+\frac {c x^2}{a}} \, dx,x,\frac {\sqrt {a+a x}}{\sqrt {c-c x}}\right )\\ &=\frac {5}{16} a^2 c^2 x \sqrt {a+a x} \sqrt {c-c x}+\frac {5}{24} a c x (a+a x)^{3/2} (c-c x)^{3/2}+\frac {1}{6} x (a+a x)^{5/2} (c-c x)^{5/2}+\frac {5}{8} a^{5/2} c^{5/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+a x}}{\sqrt {a} \sqrt {c-c x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.25, size = 86, normalized size = 0.68 \begin {gather*} \frac {c^2 (a (1+x))^{5/2} \left (x \sqrt {1+x} \sqrt {c-c x} \left (33-26 x^2+8 x^4\right )-30 \sqrt {c} \tan ^{-1}\left (\frac {\sqrt {c-c x}}{\sqrt {c} \sqrt {1+x}}\right )\right )}{48 (1+x)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(197\) vs.
\(2(94)=188\).
time = 0.19, size = 198, normalized size = 1.57
method | result | size |
risch | \(-\frac {x \left (8 x^{4}-26 x^{2}+33\right ) \left (1+x \right ) \left (-1+x \right ) a^{3} c^{3}}{48 \sqrt {a \left (1+x \right )}\, \sqrt {-c \left (-1+x \right )}}+\frac {5 \arctan \left (\frac {\sqrt {a c}\, x}{\sqrt {-a c \,x^{2}+a c}}\right ) a^{3} c^{3} \sqrt {-a \left (1+x \right ) c \left (-1+x \right )}}{16 \sqrt {a c}\, \sqrt {a \left (1+x \right )}\, \sqrt {-c \left (-1+x \right )}}\) | \(105\) |
default | \(-\frac {\left (a x +a \right )^{\frac {5}{2}} \left (-c x +c \right )^{\frac {7}{2}}}{6 c}+\frac {5 a \left (-\frac {\left (a x +a \right )^{\frac {3}{2}} \left (-c x +c \right )^{\frac {7}{2}}}{5 c}+\frac {3 a \left (-\frac {\sqrt {a x +a}\, \left (-c x +c \right )^{\frac {7}{2}}}{4 c}+\frac {a \left (\frac {\left (-c x +c \right )^{\frac {5}{2}} \sqrt {a x +a}}{3 a}+\frac {5 c \left (\frac {\left (-c x +c \right )^{\frac {3}{2}} \sqrt {a x +a}}{2 a}+\frac {3 c \left (\frac {\sqrt {-c x +c}\, \sqrt {a x +a}}{a}+\frac {c \sqrt {\left (-c x +c \right ) \left (a x +a \right )}\, \arctan \left (\frac {\sqrt {a c}\, x}{\sqrt {-a c \,x^{2}+a c}}\right )}{\sqrt {-c x +c}\, \sqrt {a x +a}\, \sqrt {a c}}\right )}{2}\right )}{3}\right )}{4}\right )}{5}\right )}{6}\) | \(198\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 72, normalized size = 0.57 \begin {gather*} \frac {5 \, a^{3} c^{3} \arcsin \left (x\right )}{16 \, \sqrt {a c}} + \frac {5}{16} \, \sqrt {-a c x^{2} + a c} a^{2} c^{2} x + \frac {5}{24} \, {\left (-a c x^{2} + a c\right )}^{\frac {3}{2}} a c x + \frac {1}{6} \, {\left (-a c x^{2} + a c\right )}^{\frac {5}{2}} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.72, size = 201, normalized size = 1.60 \begin {gather*} \left [\frac {5}{32} \, \sqrt {-a c} a^{2} c^{2} \log \left (2 \, a c x^{2} + 2 \, \sqrt {-a c} \sqrt {a x + a} \sqrt {-c x + c} x - a c\right ) + \frac {1}{48} \, {\left (8 \, a^{2} c^{2} x^{5} - 26 \, a^{2} c^{2} x^{3} + 33 \, a^{2} c^{2} x\right )} \sqrt {a x + a} \sqrt {-c x + c}, -\frac {5}{16} \, \sqrt {a c} a^{2} c^{2} \arctan \left (\frac {\sqrt {a c} \sqrt {a x + a} \sqrt {-c x + c} x}{a c x^{2} - a c}\right ) + \frac {1}{48} \, {\left (8 \, a^{2} c^{2} x^{5} - 26 \, a^{2} c^{2} x^{3} + 33 \, a^{2} c^{2} x\right )} \sqrt {a x + a} \sqrt {-c x + c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (x + 1\right )\right )^{\frac {5}{2}} \left (- c \left (x - 1\right )\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 679 vs.
\(2 (94) = 188\).
time = 1.48, size = 679, normalized size = 5.39 \begin {gather*} \frac {1}{240} \, {\left (\frac {150 \, a^{2} c \log \left ({\left | -\sqrt {-a c} \sqrt {a x + a} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \right |}\right )}{\sqrt {-a c}} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} {\left ({\left (2 \, {\left ({\left (a x + a\right )} {\left (4 \, {\left (a x + a\right )} {\left (\frac {5 \, {\left (a x + a\right )}}{a^{5}} - \frac {31}{a^{4}}\right )} + \frac {321}{a^{3}}\right )} - \frac {451}{a^{2}}\right )} {\left (a x + a\right )} + \frac {745}{a}\right )} {\left (a x + a\right )} - 405\right )} \sqrt {a x + a}\right )} c^{2} {\left | a \right |} - \frac {1}{120} \, {\left (\frac {90 \, a^{2} c \log \left ({\left | -\sqrt {-a c} \sqrt {a x + a} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \right |}\right )}{\sqrt {-a c}} - \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} {\left ({\left (2 \, {\left (a x + a\right )} {\left (3 \, {\left (a x + a\right )} {\left (\frac {4 \, {\left (a x + a\right )}}{a^{4}} - \frac {21}{a^{3}}\right )} + \frac {133}{a^{2}}\right )} - \frac {295}{a}\right )} {\left (a x + a\right )} + 195\right )} \sqrt {a x + a}\right )} c^{2} {\left | a \right |} - \frac {1}{12} \, {\left (\frac {18 \, a^{2} c \log \left ({\left | -\sqrt {-a c} \sqrt {a x + a} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \right |}\right )}{\sqrt {-a c}} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} {\left ({\left (a x + a\right )} {\left (2 \, {\left (a x + a\right )} {\left (\frac {3 \, {\left (a x + a\right )}}{a^{3}} - \frac {13}{a^{2}}\right )} + \frac {43}{a}\right )} - 39\right )} \sqrt {a x + a}\right )} c^{2} {\left | a \right |} + \frac {1}{3} \, {\left (\frac {6 \, a^{2} c \log \left ({\left | -\sqrt {-a c} \sqrt {a x + a} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \right |}\right )}{\sqrt {-a c}} - \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \sqrt {a x + a} {\left ({\left (a x + a\right )} {\left (\frac {2 \, {\left (a x + a\right )}}{a^{2}} - \frac {7}{a}\right )} + 9\right )}\right )} c^{2} {\left | a \right |} - {\left (\frac {2 \, a^{2} c \log \left ({\left | -\sqrt {-a c} \sqrt {a x + a} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \right |}\right )}{\sqrt {-a c}} - \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \sqrt {a x + a}\right )} c^{2} {\left | a \right |} + \frac {{\left (\frac {2 \, a^{3} c \log \left ({\left | -\sqrt {-a c} \sqrt {a x + a} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \right |}\right )}{\sqrt {-a c}} + \sqrt {-{\left (a x + a\right )} a c + 2 \, a^{2} c} \sqrt {a x + a} {\left (a x - 2 \, a\right )}\right )} c^{2} {\left | a \right |}}{2 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+a\,x\right )}^{5/2}\,{\left (c-c\,x\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________